package com.hankz.cc.leetcode;

/**
 * @auther zzc
 * @date 2021/4/6 9:45
 */
public class 删除链表中的节点 {

    public class ListNode {
        int val;
        ListNode next;

        ListNode(int x) {
            val = x;
        }
    }

    public void removeNode(ListNode node) {
        node.val = node.next.val;
        node.next = node.next.next;
    }
}
